//
//  LLNWHTTPDetails.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFURLRequestSerialization.h"

#define kLLNWGetMethod        @"GET"
#define kLLNWPostMethod       @"POST"
#define kLLNWDELEMethod       @"DELETE"
#define kLLNWPUTMethod        @"PUT"

@interface LLNWHTTPDetails : NSObject

@property (nonatomic, copy) NSString *requestHost;

@property (nonatomic, copy) NSString *requestKey;      //request标示，用于cancel request。

@property (nonatomic, copy) NSString *requestMethod;

@property (nonatomic, strong) NSDictionary *appendHeader;

//下面1和2设计成互斥的两套设置POSTBody的逻辑，提高库的通用性，同事设置的话2替换1
//-------1--------
@property (nonatomic, strong) NSDictionary *dictBody;
@property (nonatomic, strong) NSString *stringBody;
@property (nonatomic, strong) NSData *requestBody;
//-------1--------

//-------2--------
@property (nonatomic, strong) id parameters;
@property (nonatomic, strong) AFHTTPRequestSerializer *requestSerializer;
//-------2--------

@property (nonatomic, strong) NSArray *uploadItems;         //上传数据，存放PostInfomation实体

@property (nonatomic, strong) NSString *mimeType;

@end

@interface LLNWPostInfomation : NSObject

@property (nonatomic,copy) NSString *filePath;

@property (nonatomic,copy) NSString *serverName;

@end

@interface LLNWHTTPImageDetails : NSObject

@property (nonatomic,copy) NSString *requestUrl;           //图片url地址

@property (nonatomic,copy) NSString *cachePath;            //图片缓存路径

@property (nonatomic,assign) BOOL isCacheImage;            //是否使用缓存，默认使用

@property (nonatomic,strong) UIImage *defaultPhoto;        //默认占位图

@property (nonatomic,assign) BOOL surfaceOfButton;         //设置UIButton，默认前置图

@end
